import axios from '@/libs/api.request'

/**
 * 登录获取工作者用户信息
 * @param data
 * @returns {Promise<unknown>|*}
 */
export const getSstCodeForWorker = (data) => {
  return axios.request({
    url: '/api/uc/truckdriverrecord/cargoTransportationService/getSstCodeForWorker',
    type: 'post',
    data: data
  })
}
/**
 * 停留列表接口
 * @param data
 * @returns {Promise<unknown>|*}
 */
export const findTlCarNewRealTimeList = (data) => {
  return axios.request({
    url: '/api/as/gps/cargonew/findTlCarNewRealTimeList',
    type: 'post',
    data: data
  })
}
/**
 * 处置接口
 * @param data
 * @returns {Promise<unknown>|*}
 */
export const insertTlCz = (data) => {
  return axios.request({
    url: '/api/as/gps/cargonew/insertTlCz',
    type: 'post',
    data: data
  })
}
/**
 * 处置人查询
 * @param data
 * @returns {Promise<unknown>|*}
 */
export const getLoginNameT = (data) => {
  return axios.request({
    url: '/api/us/sc/cargoaddrole/getLoginNameT',
    type: 'post',
    data: data
  })
}
